package com.mmc.ws.impl;

import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mmc.mapper.email.EmailMapper;
import com.mmc.ws.EmailWSService;

@Service
public class EmailWSServiceImpl implements EmailWSService{
	@Autowired
	private EmailMapper emailMapper;
	
	/**
	 * 这样就和spring无缝整合了，业界一般xml进行数据交互(也称为报文),请求数据是xml字符串,返回去的也是xml字符串
	 * @param requestData
	 * @return
	 */
	public String getData(String requestData){
		emailMapper.getAllMails("234234");
		//这里是模拟数据，正常应该是根据业务逻辑从DAO层取数据，然后组装成xml返回
		return "hello====>>>"+requestData;
	}
}
